#创建一个浏览器对象
from datetime import datetime

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager


class Driver:
    driver=""
    def __init__(self):
        options=webdriver.ChromeOptions()
        self.driver=webdriver.Chrome(service=Service(ChromeDriverManager().install()),options=options)
    def getScreenShot(self):
        #创建屏幕截图
    #图片名称
    #图片路径
    dirname=datetime.datetime.now().strftime("%Y-%m-%d")


BlogDriver=Driver()